<%@page pageEncoding="utf-8"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.tarena.dao.*"%>
<%@page import="com.tarena.domain.*"%>
<html>
	<head>
		<title>hello</title>
	</head>
	<body style='color: #D15F3A'>
		<table border='1'>
			<%
			List<Dept> list = new DeptDao().getAllDept();
			for(Dept dept :list){
		%>
			<tr>
				<td>
					<%=dept.getId()%>
				</td>
				<td>
					<%=dept.getName()%>
				</td>
				<td>
					<%=dept.getLocation()%>
				</td>
			</tr>
			<%
			}
			%>
		</table>
	</body>
</html>
